//
//  NRWHomeCollectionCell.m
//  Finance
//
//  Created by 邢毅 on 2018/7/31.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWHomeCollectionCell.h"

@implementation NRWHomeCollectionCell
{
	UIImageView *_contentImageView;
}

- (instancetype)initWithFrame:(CGRect)frame
{
	self = [super initWithFrame:frame];
	if (self) {
		
		_contentImageView = [[UIImageView alloc] init];
		_contentImageView.backgroundColor = [UIColor whiteColor];
		_contentImageView.opaque = YES;
		_contentImageView.frame = self.bounds;
		[self.contentView addSubview:_contentImageView];
		self.contentView.opaque = self.opaque = YES;
		self.contentView.backgroundColor = self.backgroundColor = [UIColor whiteColor];
		
	}
	return self;
}

- (void)setImageName:(NSString *)imageName {
	
	_imageName = imageName;
	
	_contentImageView.image = getImage(imageName);
}

@end
